# -*- coding: utf-8 -*- 
# 作者:飞虎
# 开发时间:2022/5/12 20:46
from PyQt5.Qt import *


class Window(QWidget):
	def __init__(self):
		super().__init__()
		self.setWindowTitle('QRubberBand学习')
		self.resize(500, 500)
		self.setup_ui()

	def setup_ui(self):
		rb = QRubberBand(QRubberBand.Rectangle, self)
		rb.setGeometry(10, 10, 60, 80)
		print(rb.isVisible())
		rb.show()
		# rb.setVisible(True)


if __name__ == '__main__':
	import sys

	app = QApplication(sys.argv)
	window = Window()
	window.show()
	sys.exit(app.exec_())
